//人员档案
/**
 * 表单自定义控制器
 */
app.controller('btnCtrl', ['$scope', '$http', BtnController]);
function BtnController($scope, $http) {
	$scope.bindBtn = function(event) {
		switch(event){
			case 'event-to-add': // 新增
			{
				$scope.subGrid.sonlist.push({
					id: null,
					userId : $scope.valueMap['userId'],
					recordTime : "",
					recordType : '0',
					remark : "",
				});
				break;
			}
			case 'event-to-del': // 删除
			{
				$scope.subGrid.deleteBatch();
				break;
			}
		};
	}

}



